package com.example.demo.config;

import com.example.demo.bean.JavastackProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
//@EnableConfigurationProperties(value={JavastackProperties.class})
public class TestConfiguration {
    @Bean
    public JavastackProperties getJavastackProperties() {
        JavastackProperties javastackProperties = new JavastackProperties();
        javastackProperties.setAuthor("aaaaaaaabbbbbbbbbbbb");
        return javastackProperties;
    }
}
